/*
 * @Author: jlzm
 * @Date: 2020-03-02 10:49:55
 * @LastEditors: jlzm
 * @LastEditTime: 2020-06-18 17:00:42
 * @FilePath: \MPShop\hub\storage.js
 */
/*
 * @Author: jlzm
 * @Date: 2020-03-02 10:49:55
 * @LastEditors: jlzm
 * @LastEditTime: 2020-06-18 17:00:04
 * @FilePath: \MPShop\hub\storage.js
 */

/** 分享id相关 begin */
export const setShareId = (shareId) => {
    return uni.setStorageSync('shareId', shareId);
}

export const getShareId = () => {
    return uni.getStorageSync('shareId');
}
/** 分享id相关 emd */


/** 网络状态相关 begin */
export const setHasNetwork = (hasNetwork = true) => {
    console.log('hasNetwork', hasNetwork);
    return uni.setStorageSync('hasNetwork', hasNetwork);
}

export const getHasNetwork = () => {
    return uni.getStorageSync('hasNetwork');
}
/** 网络状态相关 end */


/**
 * 获取用户信息
 */
export const getLoginInfo = () => {
    return uni.getStorageSync('userInfo');
}